export interface ListParams {
  page?: number;
  pageSize?: number;
  name?: string;
  idCard?: string;
  mobile?: string;
  begId?: number;
  state?: number;
}

export interface ListData {
  id: number;
  companyId: number;
  elderlyId: number;
  begId: number;
  begName: string | null;
  begPrice: number;
  days: number;
  startDate: string;
  foodPricec: number;
  servicePricec: number;
  cashPledge: number;
  livingPriec: number;
  pagDays: number;
  state: number;
  addTime: string;
  addAccountId: number;
  addAccountName: string;
  elderlyName: string;
  elderlyPhoto: string;
  elderlyGender: string;
  elderlyIdCard: string;
  houseName: string | null;
  buildingName: string;
  services: string | null;
  files: null;
}

export interface ListResult {
  counts: number;
  pageSize: number;
  list: ListData[];
}

export interface ServiceData {
  id?: number;
  orderId?: number;
  serviceId?: number;
  serviceName?: null | string;
  serviceContent?: string | null;
}

export interface fileData {
  id?: number;
  orderId?: number;
  file?: string;
}

export interface AddParams {
  elderlyId: number;
  begId: number | null;
  begPrice: number | null;
  days: number | null;
  startDate: string;
  foodPrice: number | null;
  servicePrice: number | null;
  cashPledge: number | null;
  livingPrice: number | null;
  payDays: number | null;
  state: number;
  services: ServiceData[];
  files: fileData[];
  addTime?: string;
}

export interface AddResult {
  id?: number;
  companyId?: number;
  elderlyId?: number;
  begId?: number;
  begName?: string | null;
  begPrice?: number;
  days?: number;
  startDate?: string;
  foodPrice?: number;
  servicePrice?: number;
  cashPledge?: number;
  livingPrice?: number;
  payDays?: number;
  state?: number;
  addTime?: string;
  addAccountId?: number;
  addAccountName?: null | string;
  elderlyName?: null | string;
  elderlyPhoto?: null | string;
  elderlyGender?: null | string;
  elderlyIdCard?: null | string;
  houseName?: null | string;
  buildingName?: null | string;
  services?: ServiceData[];
  files?: fileData[];
}
